home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / screen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.5 KB  |  68 lines

  1. // $Id: screen.h 1.2 1997/07/14 04:25:13 dlorre Exp dlorre $
  2. #ifndef CLASS_SCREEN_H
  3. #define CLASS_SCREEN_H
  4.  
  5. #ifndef EXEC_TYPES_H
  6. #include <exec/types.h>
  7. #endif
  8.  
  9. #ifndef GRAPHICS_RASTPORT_H
  10. struct RastPort ;
  11. #endif
  12.  
  13. #ifndef GRAPHICS_TEXT_H
  14. struct TextFont ;
  15. #endif
  16.  
  17. #ifndef INTUITION_SCREENS_H
  18. struct Screen ;
  19. struct DrawInfo ;
  20. #endif
  21.  
  22. #ifndef UTILITY_TAGITEM_H
  23. struct TagItem ;
  24. #endif
  25.  
  26.  
  27.  
  28. #define GREEN_PEN       0   // Green color
  29. #define RED_PEN         1   // Red color
  30. #define WHITE_PEN       2   // White color
  31. #define BLACK_PEN       3   // Black color
  32. #define GFILL_PEN       4   // Fill color on cstring gadget
  33. #define GBORDER_PEN     5   // Extra Border color (not used)
  34. #define BUTTONFILL_PEN  6   // Fill color on fbutton gadget
  35. #define NUM_XPENS       7
  36.  
  37. class screen {
  38.     UWORD       *defpens ;
  39.     void setxpens(UWORD *p) ;
  40.     void setdefpens() ;
  41. public:
  42.     BOOL        owner ;
  43.     BOOL        status ;
  44.     APTR        vi ;
  45.     WORD        winbarheight ;
  46.     Screen      *scr ;
  47.     RastPort    *rp ;
  48.     TextFont    *font ;
  49.     short       left, top, width, height ;
  50.     short       xratio, yratio ;
  51.     DrawInfo    *drawinfo ;
  52.     UWORD        *xpens ;
  53.     LONG        error ;
  54.     screen(UWORD *xp, STRPTR name) ;
  55.     screen(UWORD *xp, TagItem *tags) ;
  56.     screen(UWORD *xp, ULONG tdata, ...) ;
  57.     ~screen() ;
  58.     void init() ;
  59.     void getsize() ;
  60.     void front() ;      // Standard depth arrange
  61.     void back() ;
  62.     void cfront() ;     // Family depth arrange (V39)
  63.     void cback() ;
  64.     void beep() ;
  65. };
  66.  
  67. #endif
  68.